package cn.cqie.frame.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 谢一弘
 * @date 2021/9/2  11:43
 */
@Data
@ApiModel("用户信息实体")
public class UserVo {

    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "登录账号")
    private String account;

    @ApiModelProperty(value = "0:正常 1:禁用")
    private String status;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "担任角色集合")
    private String roleName;

    @ApiModelProperty(value = "担任角色Id集合")
    private List<Long> roleIdList;

    @ApiModelProperty(value = "创建时间	")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
